package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2022/12/15 10:49 AM
 * @Version: 1.0
 **/
@Data
@TableName("pf_task_progress")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TaskProgress对象", description = "考核进度跟踪-任务绩效")
public class TaskProgress extends BaseEntity {

    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long baseBusinessProgressId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "任务绩效表id")
    private Long taskIndicatorsId;

    @TableField(value = "execution", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "执行情况")
    private String execution;

    @TableField(exist = false)
    @ApiModelProperty(value = "序号")
    private Integer indexNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "评价内容")
    private String content;

    @TableField(exist = false)
    @ApiModelProperty(value = "指标id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long indicatorsCategoryId;

    @TableField(exist = false)
    @ApiModelProperty(value = "填报年月")
    private String fillingMonth;

    @TableField(exist = false)
    @ApiModelProperty(value = "第三方指标id")
    private String indicatorsCodeId;
}
